package xyz.ddlnt.servicegeneralclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.dto.CategoryDTO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/11 0:47
 */
//@FeignClient(name = "service-general", url = "http://yixuewang-service-general:9013", path = "/category")
//@FeignClient(name = "service-general", url = "http://localhost:9003", path = "/category")
@FeignClient(value = "service-general", path = "/category")
public interface CategoryToMgFeignClient {

    @GetMapping("getAllName")
    Result<List<CategoryDTO>> getAllCategoryName();
}
